/*
 * Wire
 * Copyright (C) 2018 Wire Swiss GmbH
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see http://www.gnu.org/licenses/.
 *
 */

.conversation-details {
  .right-panel-mute {
    path {
      fill: var(--background);
    }

    &--active {
      path {
        fill: @w-blue;
      }
    }
  }

  &__header {
    padding: 0 16px;

    .conversation-badges {
      margin-top: 6px;
    }
  }

  &__flex-row {
    display: flex;
    flex-direction: row;
  }

  &__read-receipts {
    padding: 12px 0;

    .panel__info-text--margin {
      margin-left: 56px;
    }

    .panel__action-item {
      min-height: auto;
    }
  }

  &__admin {
    .base-toggle {
      width: 100%;
      margin-bottom: 0;
    }
  }

  &__name {
    .heading-h2;

    display: flex;
    align-items: center;
    padding: 0;
    border: none;
    word-break: break-word;

    &--input {
      width: 250px;
      height: auto;
      border: 0;
      background-color: var(--app-bg-secondary);
      color: var(--background);
      outline: none;
      resize: none;
    }

    &__edit-icon {
      display: flex;
      align-items: center;
      padding: 4px;
      border: none;
      margin-left: 7px;
      background: transparent;
      opacity: 0;
      transition: opacity var(--animation-timing-faster) var(--ease-in-quart);

      &:focus {
        opacity: 1;
      }

      svg {
        width: 12px;
        height: 12px;
      }

      path {
        fill: var(--background-fade-56);
      }
    }

    &:hover > &__edit-icon {
      opacity: 1;
    }
  }

  &__participant_count {
    margin-top: 8px;
    text-transform: uppercase;
    .label-bold;

    &__service {
      margin-left: 8px;
    }

    &__text {
      .label;
    }
  }

  &__list-head {
    .panel-header;
    width: 100%;
  }

  &__participant-options {
    margin: 24px 0 0;
  }

  &__group-size-info {
    margin: 8px 0 0;
    color: var(--foreground);
    font-size: var(--font-size-xsmall);
    line-height: var(--line-height-sm);
  }

  &__bottom-actions {
    padding: 0;
    margin: 0;
    list-style: none;
  }
}
